import router from "./router";
import NProgress from "nprogress";
import { useUserStore } from "@/store/modules/user";
import { validaEmpty } from "@/utils/validate";
import type { RouteRecordRaw } from "vue-router";

NProgress.configure({
  showSpinner: false,
});
const whiteList = ["/login"]; // 不重定向白名单
router.beforeEach(async (to, from, next) => {
  next();
});
router.afterEach(() => {
  NProgress.done();
});
